/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package evotingclient.model;

/**
 *
 * @author Maciek
 */
public class PersonalData {
    public String firstName;
    public String lastName;
    public String Pesel;
    
    public String randomNumber;

    public PersonalData(String firstName, String lastName, String Pesel, String randomNumber) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.Pesel = Pesel;
        this.randomNumber = randomNumber;
    }

    public static PersonalData parseString(String string){
        String[] tab = string.split("\n");
        return new PersonalData(tab[0],tab[1],tab[2],tab[3]);
        
    }
    public PersonalData() {
    }
    
    
}
